package com.example.easybuy.service;


import com.example.easybuy.pojo.EasybuyNews;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author 张子晨
 * @since 2021-03-12
 */
public interface EasybuyNewsService {

    //查询最新的5条新闻
    public List<EasybuyNews> newsLatest();

    //分页查询所有新闻
    public PageInfo<EasybuyNews> newsAll(int pageNum, int pageSize);

    //根据id查询新闻
    public EasybuyNews getNewsById(int id);
}
